package com.ymttest.common.enums;

/**
 * 发货单类型
 */
public enum BillTypeEnum {
	 //未知
    UNKNOW(0),
    //在线做单(1)
    ONlINE(1),
    //已有运单号做单(2)
    HAVE_BILLNO(2),
    //上传表单(3)
    UPLOAD_FORM(3),
    //授权贝海调用码头API做单(4)
    YMTAPI(4);


	private int intValue;
	private static java.util.HashMap<Integer, BillTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, BillTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, BillTypeEnum>();
		}
		return mappings;
	}

	private BillTypeEnum(int value) {
		intValue = value;
		BillTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static BillTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}